#include "videocontrol.h"

VideoControl::VideoControl(QWidget *parent) : QFrame(parent)
{
    m_player=new VideoPlayer(this);
    m_player->config()->winId=(const void*)this->winId();
    this->setStyleSheet("background-color:red");
}

VideoPlayer *VideoControl::player()
{
    return m_player;
}

void VideoControl::resizeEvent(QResizeEvent *e)
{
    m_player->config()->renderRect=QRect(0,0,this->width(),this->height());
}
